{include file="header.html"}
<script type="text/javascript">
    $(function(){
        $('#add_time_from').datepicker({dateFormat: 'yy-mm-dd'});
        $('#add_time_to').datepicker({dateFormat: 'yy-mm-dd'});
    });
</script>
<script type="text/javascript" src="templates/js/jquery.colorbox.js" charset="utf-8"></script>
<link href="templates/style/colorbox.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
$(function(){
	
})
function view(id){
		$w=$(window).width();
	    $h=$(window).height();
	    $w=$w*0.7;
	    $("#tagframe").width($w);
		$("#tagframe").attr("src","index.php?app=video&act=view&id="+id);
	    $.colorbox({
	        width : $w+20,
	        height : "650px",
	        inline : true,
	        href : "#taglist"
	    });
	}
</script>
<div style="display: none"  >
	<div id="taglist">
	<iframe id="tagframe" src="index.php?app=video&act=view"  width="800px" height="600px" frameborder="0" scrolling="no"></iframe>
	</div>
</div>
<div id="rightTop">
    <p>{$lang.videoreply}</p>
    <ul class="subnav">
        <li><span>{$lang.manage}</span></li>
    </ul>
</div>
<div class="mrightTop">
    <div class="fontl">
        <form method="get">
            <div class="left">
                <input type="hidden" name="app" value="videoreply" />
                <input type="hidden" name="act" value="index" />
                {$lang.content}
                <input class="queryInput" type="text" name="content" value="{$query.content|escape}" />
                {$lang.add_time_from} <input class="queryInput2" style="width:65px;" type="text" value="{$query.add_time_from}" id="add_time_from" name="add_time_from" class="pick_date" />
                {$lang.add_time_to} <input class="queryInput2" style="width:65px;" type="text" value="{$query.add_time_to}" id="add_time_to" name="add_time_to" class="pick_date" />
                <input type="submit" class="formbtn" value="{$lang.query}" />
            </div>
            <!--{if $filtered}-->
            <a class="left formbtn1" href="index.php?app=videoreply">{$lang.cancel_query}</a>
            <!--{/if}-->
        </form>
    </div>
    <div class="fontr">
        {include file=page.top.html}
    </div>
    <div class="clear:both;"></div>
</div>
<div class="tdare">
    <table width="100%" cellspacing="0" class="dataTable">
        <!--{if $videoreplys}-->
        <tr class="tatr1">
            <td width="20" class="firstCell"><input type="checkbox" class="checkall" /></td>
            <td width="15%" align="left">{$lang.content}</td>
            <td width="15%">{$lang.username} | {$lang.realname}</td>
            <td width="10%" style="text-align:center;">{$lang.pubdate}</td>
            <td width="20%">{$lang.contents}</td>
            <td style="text-align:center;">{$lang.handler}</td>
        </tr>
        <!--{/if}-->
        <!--{foreach from=$videoreplys item=videoreply}-->
        <tr class="tatr2">
            <td class="firstCell"><input type="checkbox" class="checkitem" value="{$videoreply.reply_id}"/></td>
            <td><a href="javascript:void(0);" onclick="view({$videoreply.video_id})">{$videoreply.content|escape|truncate:15}</a></td>
            <td>{$videoreply.user_name|escape} | {$videoreply.real_name|escape}</td>
            <td style="text-align:center;">{$videoreply.replydate|date:Y-m-d H:i}</td>
            <td>{$videoreply.contents|escape|truncate:30}</td>
            <td style="text-align:center;">
                <a href="index.php?app=videoreply&amp;act=drop&amp;id={$videoreply.reply_id}">删除</a>
			</td>
        </tr>
        <!--{foreachelse}-->
        <tr class="no_data">
            <td colspan="7">{$lang.no_data}</td>
        </tr>
        <!--{/foreach}-->
    </table>
    <!--{if $videoreplys}-->
    <div id="dataFuncs">
        <div class="pageLinks">
            {include file=page.bottom.html}
        </div>
        <div id="batchAction" class="left paddingT15">
            &nbsp;&nbsp;
            <input class="formbtn batchButton" type="button" value="删除" name="id" uri="index.php?app=videoreply&act=drop" presubmit="confirm('{$lang.drop_confirm}');" />
            &nbsp;&nbsp;
            <!--<input class="formbtn batchButton" type="button" value="lang.update_order" name="id" presubmit="updateOrder(this);" />-->
        </div>
        <div class="clear:both;"></div>
    </div>
    <div class="clear"></div>
    <!--{/if}-->
</div>
{include file="footer.html"}
